/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pdasim;

import java.util.ArrayList;

/**
 *
 * @author Camilo
 */
public class NODO {
    private int id;
    private String name;
    private int x;
    private int y;
    private boolean inicial;
    private boolean finale;
    private boolean status;
    private ArrayList<Transition> transitions;
    
    public NODO(int id,String name,int x,int y,boolean inicial,boolean finale,boolean status){
        this.id = id;
        this.name = name;
        this.x = x;
        this.y = y;
        this.inicial = inicial;
        this.finale = finale;
        this.transitions = new ArrayList<Transition>();
        this.status = status;
    }
    
    public void addtransition (Transition transition){
       this.transitions.add(transition); 
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the x
     */
    public int getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * @return the y
     */
    public int getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * @return the inicial
     */
    public boolean isInicial() {
        return inicial;
    }

    /**
     * @param inicial the inicial to set
     */
    public void setInicial(boolean inicial) {
        this.inicial = inicial;
    }

    /**
     * @return the finale
     */
    public boolean isFinale() {
        return finale;
    }

    /**
     * @param finale the finale to set
     */
    public void setFinale(boolean finale) {
        this.finale = finale;
    }

    /**
     * @return the transitions
     */
    public ArrayList<Transition> getTransitions() {
        return transitions;
    }

    /**
     * @param transitions the transitions to set
     */
    public void setTransitions(ArrayList<Transition> transitions) {
        this.transitions = transitions;
    }

    /**
     * @return the status
     */
    public boolean isStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(boolean status) {
        this.status = status;
    }
    
}
